class Person():
    def __init__(self,name,weight):
        self.weight = weight
        self.name = name
    def run(self):
        print(f"{self.name}在跑步,减少0.5公斤")
        self.weight -= 0.5
    def eat(self):
        print(f"{self.name}在吃东西,增加1公斤")
        self.weight += 1
    def __str__(self):
        return  f"{self.name}体重{self.weight}公斤"
if __name__ == '__main__':
    xiaoMing = Person("小明",75)
    xiaoMei = Person("小美",75)
    xiaoMing.run()
    xiaoMei.run()
    print(xiaoMing)
    print(xiaoMei)
